﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Prop
{
    class Item
    {
        private int id;
        private string name;
        private int price;
        private int numInStock;
        private int numOrdered = 0;
        


        public Item(int id, string name,int price, int numInStock)
        {
            this.id = id;
            this.name = name;
            this.numInStock = numInStock;
            this.price = price;
           
        }
            public int Id
        {
            get { return id; }
        }
        public String Name
        {
            get { return name; }
        }
        public double Price
        {
            get { return price; }
        }
        public int NumInStock
        {
            get { return numInStock; }
            set { this.numInStock = value; }
        }
        
        public virtual String getInfo()
        {
            
            return id.ToString() +", " + name +", "+ numInStock.ToString(); 
        }
        public int NumOrdered
        {
            get { return this.numOrdered; }
            set { this.numOrdered = value; }
        }

    }
}
